class Base {

  public set: any
  static modelName: string
  static Empty: () => any

  id: string | undefined
  _loading_: boolean
  dateCreate?: string | undefined
  dateUpdate?: string | undefined

  constructor() {
    this.id = undefined
    this._loading_ = false
    this.dateCreate = undefined
    this.dateUpdate = undefined
  }

  getId() {
    return this.id
  }
}

Base.Empty = function () {
  const Type: any = this
  return new Type(null, this)
}

export default Base
